#include "rule.h"
#include "ui_rule.h"

Rule::Rule(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Rule)
{
    ui->setupUi(this);
    //传输信号，使按Back键返回主页面
    connect(ui->backButton,&QPushButton:: released,[=]()
    {
        emit closeWindow();
    });
}

Rule::~Rule()
{
    delete ui;
}
